import request from "@/utils/request";
// 查询利润规则
export function queryPro(query) {
  return request({
    url: "/commodity/profitRule",
    method: "get",
  });
}

export function addPro(data) {
  return request({
    url: "/commodity/profitRule",
    method: "post",
    data,
  });
}
// 变更记录
export function profitRuleList(query) {
  return request({
    url: "/cancel/order/profitList",
    method: "get",
    params: query,
  });
}
